<?php

namespace app\api\validate;

use think\Validate;

class JdCallCharges extends Validate
{
    protected $rule = [
        'skuId' => 'require|integer',
        'isJumpApplets' => 'integer|in:1,0',
    ];

    protected $message = [
        'skuId.require'         => '商品id不能为空',
        'skuId.integer'         => '商品id必须整型',
        'isJumpApplets.integer' => '是否需要跳转小程序只能是数字',
        'isJumpApplets.in'      => '是否需要跳转小程序只能是1或者0',
    ];
    protected $scene = [
        'turn_chain' => [
            'skuId',
            'isJumpApplets',
        ],
    ];
}
